var express = require('express');
var router = express.Router();

const { register,login,getData,del,auth,identity,isAuth,pay} = require("../controllers/lesseeControllers");

router.post("/register", register);
router.post("/login", login);
router.get("/getData", getData);
router.post("/del", del);
// 身份认证
router.post("/auth",auth);
// 改变状态
router.post("/identity",identity);
//是否身份认证 和 获得个人信息(钱)
router.get("/isAuth",isAuth);
// 余额不足充值
router.post("/pay",pay)
module.exports = router;
